#include "DataPointer.h"
#include<stdio.h>

int main()
{
	unsigned char* data = "ABCDEFGHIKK412";

	printf("The data string is %s\n", data);
	
	DataPointer pointer = DataPointer((void*) data, sizeof(unsigned char)*14);
	for(int i = 0; i < pointer.size(); i++)
	{
		BytePointer byte = pointer[i];
		unsigned char c = byte.getByte();
		printf("%c", c);
		
	}
	printf("\nFINISHED NOW\n");
	printf("Test equality operators\n");
	if(pointer == NULL)
	{
		printf("pointer == NULL ???\n");
	}	
	else
		printf("Test passed \n");
	DataPointer pointer2 = DataPointer((void*) data, sizeof(unsigned char)*14);
	if(pointer2 == pointer)
		printf("This test passed\n");
	else
		printf("test failed\n");
	printf("Finished tests\n");
}
